﻿using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Runtime;
using System;
using System.Collections.Generic;
using System.Text;

namespace SharedProject
{
    public class Init : IExtensionApplication
    {
        public void Initialize()
        {
#if AC2012
            Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage($"\n{HostApplicationServices.Current.RegistryProductRootKey}");
#else
            Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage($"\n{HostApplicationServices.Current.UserRegistryProductRootKey}");
#endif
        }

        public void Terminate()
        {

        }
    }
}
